package com.wangzhixuan.commons.listener;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Service;


/**
 * 启动监听器
 *
 * @author ken
 */
@Service
public class StartupListener implements ApplicationListener<ContextRefreshedEvent> {
	
	
	
    @Override
    public void onApplicationEvent(ContextRefreshedEvent evt) {
    	try {
			
			System.err.println("******************");
	    	System.err.println("==============");
	    	
	    	System.err.println("==============");
	    	System.err.println("******************");
		} catch (Exception e) {
			e.printStackTrace();
			System.err.println("******************");
	    	System.err.println("==============");
		}
    	
    	
    }
}
